<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>订单</title>
    <script src="jquery-3.1.1.js"></script>
    <style>
    span{
        display: block;
        width: 100px;
        height: 30px;
        border: 1px solid #eee;
    }
    div{
        width: 100px;
        height: 130px;
        float: left;
        text-align: center;
    }
    .l1:hover{
        background-color: gray;
    }
    li{
        display: none;
    }
    .l1{
        display: block;
        width: 100px;
        height: 30px;
        border: 1px solid #eee;
    }
    .l2{
        display: none;
    }
    p{
        display: block;
        width: 80px;
        height: 20px;
        /*border: 1px solid black;*/
        position: absolute;
        top: 150px;
        left: 50px;
        text-align: center;
    }
    </style>
</head>
<body>
    <div class="d1">
        <span class="s1">销售订单</span>
        <li>订单1</li>
        <li>订单2</li>
        <li>订单3</li>
    </div>
    <div class="d2">
        <span class="s2">消费订单</span>
        <li>消费1</li>
        <li>消费2</li>
        <li>消费3</li>
    </div>  
    <div style="clear: both"></div>
    <p></p>
</body>
</html>
<script>

    $('.s1').mouseover(function(){
        $(this).siblings().addClass('l1')
        $('.s2').siblings().removeClass('l1');
    });
    $('.s2').mouseover(function(){
        $(this).siblings().addClass('l1')
        $('.s1').siblings().removeClass('l1');
    });
    
    $('li').click(function(){
        $('p').html($(this).html());
        $('li').removeClass('l1');
    });




</script>